package com.example.xpvideo.entity;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 短视频/发现评论表(VideoComment)实体类
 *
 * @author 杨丽辉
 * @since 2021-10-18 21:38:39
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VideoComment implements Serializable {
    private static final long serialVersionUID = 227025928445144324L;
        /**
    *主键
    * 评论id
    * isnull 1
    */
        private Long id;

    /**
    * 评论人userId
    * isnull 0
    */            private Long userId;
    /**
    * 目标id
    * isnull 0
    */            private String targetId;
    /**
    * 父评论id
    * isnull 0
    */            private String parentCommentId;
    /**
    * 父评论的用户id
    * isnull 0
    */            private String parentCommentUserId;
    /**
    * 被回复的评论id
    * isnull 0
    */            private String replyCommentId;
    /**
    * 被回复的评论用户id
    * isnull 0
    */            private String replyCommentUserId;
    /**
    * 评论等级[ 1 一级评论 默认 ，2 二级评论]
    * isnull 0
    */            private Integer commentLevel;
    /**
    * 评论的内容
    * isnull 0
    */            private String content;
    /**
    * 点赞数
    * isnull 0
    */            private Integer praiseNum;
    /**
    * 创建时间
    * isnull 0
    */            private Integer createTime;
    /**
    * 图片数组
    * isnull 0
    */            private String imgList;
    /**
    * 0为删除,1为已删除
    * isnull 0
    */            private Integer deleted;
    /**
    * 修改时间
    * isnull 0
    */            private Integer updateTime;
    /**
    * 评论类型：0短视频；1发现
    * isnull 0
    */            private Integer type;
        
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
        
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
        
    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }
        
    public String getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(String parentCommentId) {
        this.parentCommentId = parentCommentId;
    }
        
    public String getParentCommentUserId() {
        return parentCommentUserId;
    }

    public void setParentCommentUserId(String parentCommentUserId) {
        this.parentCommentUserId = parentCommentUserId;
    }
        
    public String getReplyCommentId() {
        return replyCommentId;
    }

    public void setReplyCommentId(String replyCommentId) {
        this.replyCommentId = replyCommentId;
    }
        
    public String getReplyCommentUserId() {
        return replyCommentUserId;
    }

    public void setReplyCommentUserId(String replyCommentUserId) {
        this.replyCommentUserId = replyCommentUserId;
    }
        
    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }
        
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
        
    public Integer getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(Integer praiseNum) {
        this.praiseNum = praiseNum;
    }
        
    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }
        
    public String getImgList() {
        return imgList;
    }

    public void setImgList(String imgList) {
        this.imgList = imgList;
    }
        
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
        
    public Integer getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }
        
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"userId\":" + userId +
                            " ,\"targetId\":" + targetId +
                            " ,\"parentCommentId\":" + parentCommentId +
                            " ,\"parentCommentUserId\":" + parentCommentUserId +
                            " ,\"replyCommentId\":" + replyCommentId +
                            " ,\"replyCommentUserId\":" + replyCommentUserId +
                            " ,\"commentLevel\":" + commentLevel +
                            " ,\"content\":" + content +
                            " ,\"praiseNum\":" + praiseNum +
                            " ,\"createTime\":" + createTime +
                            " ,\"imgList\":" + imgList +
                            " ,\"deleted\":" + deleted +
                            " ,\"updateTime\":" + updateTime +
                            " ,\"type\":" + type +
                  '}';
    }


}
